class ArrayHelper
{
	public static function indexOf <T> (array : Array<T>, obj : T) : Int
	{
    		for (i in 0...array.length) {
			if (array[i] == obj) return i;
    		}
    		return -1;
	}
}
